import request from '@/utils/request'

// 封装并暴露登录请求接口
export const loginAPI = (data) => {
  return request.post('/sys/login', data)
}

// 封装并暴露获取用户个人信息请求接口
export const getUserInfoAPI = () => {
  return request.post('/sys/profile')
}

// 封装并暴露获取用户头像请求接口
export function getUserDetailByIdAPI(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
